package com.example.demo.entity;

import java.util.Date;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;

/**
 * 体检详情表(CheckupDetail)表实体类
 *
 * @author makejava
 * @since 2025-01-28 11:54:32
 */
@SuppressWarnings("serial")
@Data
public class CheckupDetail extends Model<CheckupDetail> {

    private Long id;
    //关联的体检记录ID
    private Long checkupId;
    //检查项目名称
    private String itemName;
    //检查结果值
    private String itemValue;
    //参考范围
    private String referenceRange;
    //单位
    private String unit;
    //是否异常: 0-正常 1-异常
    private Integer isAbnormal;
    //医生建议
    private String doctorComment;

    private Date createTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getCheckupId() {
        return checkupId;
    }

    public void setCheckupId(Long checkupId) {
        this.checkupId = checkupId;
    }

    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    public String getItemValue() {
        return itemValue;
    }

    public void setItemValue(String itemValue) {
        this.itemValue = itemValue;
    }

    public String getReferenceRange() {
        return referenceRange;
    }

    public void setReferenceRange(String referenceRange) {
        this.referenceRange = referenceRange;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public Integer getIsAbnormal() {
        return isAbnormal;
    }

    public void setIsAbnormal(Integer isAbnormal) {
        this.isAbnormal = isAbnormal;
    }

    public String getDoctorComment() {
        return doctorComment;
    }

    public void setDoctorComment(String doctorComment) {
        this.doctorComment = doctorComment;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    public Serializable pkVal() {
        return this.id;
    }
}

